<?
$conn=mysql_connect("localhost","root","root");   //建立与SQL Server数据库的连接
mysql_select_db("db_ee",$conn);   //选择数据库?>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>网站管理中心</title>
<meta name="Copyright" content="Douco Design." />
<link href="css/public.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="js/jquery.min.js"></script>
<script type="text/javascript" src="js/global.js"></script>
</head>
<body>
<div id="dcWrap"> <div id="dcHead">
 <div id="head">
  <div class="logo"><a href="index.html"><img src="images/dclogo.gif" alt="logo"></a></div>
  <div class="nav">
   <ul>
      <li><a href="search.php">查看模块</a></li>
    <li><a href="new.php">新建模块</a></li>
    <li><a href="edit.php">编辑模块</a></li>
	 <li><a href="delete.php">删除模块</a></li>
    <li><a href="">帮助</a></li>
    </ul>
   <ul class="navRight">
    <li class="M noLeft"><a href="JavaScript:void(0);">您好，admin</a>
       </li>
    <li class="noRight"><a href="login.php?rec=logout">退出</a></li>
   </ul>
  </div>
 </div>
</div>
<!-- dcHead 结束 --> <div id="dcLeft"><div id="menu">
 <!--<ul class="top">
  <li><a href="index.html"><i class="home"></i><em>管理首页</em></a></li>
 </ul>-->
  <ul>
    <li><a href="physical.php"><i class="show"></i><em>生理健康模块管理</em></a></li>
 </ul>
 <ul>
  <li><a href="emotion.php"><i class="page"></i><em>心理健康模块管理</em></a></li>
 </ul>
   <ul>
  <li><a href="talk.php"><i class="productCat"></i><em>专家模块管理</em></a></li>
 
 </ul>
  <ul>
  <li><a href="bk.php"><i class="articleCat"></i><em>百科模块管理</em></a></li>
  </ul>
   <ul>
  <li><a href="user.php"><i class="articleCat"></i><em>注册用户信息管理</em></a></li>
  </ul>
</div></div>
 <div id="dcMain"> <!-- 当前位置 -->
  <div id="index" class="mainBox" style="padding-top:18px;height:auto!important;height:550px;min-height:550px;">
   <table width="65%" border="0" cellspacing="0" cellpadding="0" class="indexBoxTwo">
    <tr>
     <td width="65%" valign="top" class="pr">
      <div class="indexBox">
       <div class="boxTitle">修改用户基本信息</div>
       <ul>
    <?php
					   $link=mysql_connect("localhost","root","root") or die("不能连接到数据库服务器！可能是数据库服务器没有启动");
						$db_selected=mysql_select_db("db_ee",$link);
						mysql_query("set names utf8");
						$id=$_GET[id];
						$sql=mysql_query("select * from user where id=$id",$link);
						$info=mysql_fetch_array($sql);
						
						
		   ?>
	   <form action="user_edit_ok.php?id=$_GET[id]" method="post" name="form1">
        <table width="100%" border="0" cellspacing="0" cellpadding="7" class="tableBasic">
     		
       <td width="80" align="right">修改用户姓名</td>
       <td>
        <input type="text" name="username" value=<?php echo $info[username]?> size="40" class="inpMain" />
       </td>
      </tr>
      <tr>
       <td align="right">修改用户密码</td>
       <td>
        <input type="text" name="password" value=<?php echo $info[password] ?> size="40" class="inpMain" />
       </td>
	</tr>
		<tr>
       <td align="right">修改用户电话</td>
       <td>
        <input type="text" name="phone" value=<?php echo $info[phone]?> size="40" class="inpMain" />
       </td>
	</tr>
	<tr>
	<td></td>
   <td align="left">
        <input type="hidden" name="token" value="f65745c0" />
        <input type="hidden" name="id" value="">
        <input name="submit" class="btn" type="submit" value="提交" />
		
       </td>
	</tr>
		</table>
		</form>
       </ul>
      </div>
     </td>
     
    </tr>
	<tr>
	
	
   </table>
   </div>
	</div>
 </body>
</html>